﻿<%@ Page Title="Ingreso de Ventas" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="IngresoVentas.aspx.cs" Inherits="Gui.Web.Forms.IngresoVentas" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="container">
        <div class="row">
            <div class="area-top clearfix">
                <div class="pull-left header">
                    <h3 class="title">
                        <i class="icon-dashboard"></i>Ventas
                    </h3>
                    <h5>
                        <span>Informaci&oacute;n de las ventas </span>
                    </h5>
                </div>
            </div>
        </div>
    </div>
    <div class="container padded">
        <div class="row">
            <div class="col-md-12">
                <div class="box">
                    <div class="box-header">
                        <span class="title">Ingreso de Ventas</span>
                        <ul class="box-toolbar">
                            <li>
                                <asp:DropDownList ID="Anios" runat="server" AutoPostBack="True" class="uniform" OnSelectedIndexChanged="Anios_SelectedIndexChanged"
                                    DataMember="IdAnio" DataTextField="IdAnio" DataValueField="IdAnio">
                                </asp:DropDownList>
                            </li>
                        </ul>
                    </div>
                    <div class="padded">
                        <div>
                            <label>
                                Escoja el mes:
                            </label>
                            <asp:DropDownList ID="Meses" runat="server" AutoPostBack="True" DataMember="IdMes"
                                DataTextField="NombreMes" DataValueField="IdMes" class="uniform" OnSelectedIndexChanged="Meses_SelectedIndexChanged"
                                Width="30%">
                            </asp:DropDownList>
                        </div>
                        <br />
                        <br />
                        <label>
                            Datos de ventas:
                        </label>
                        <br />
                        <asp:GridView ID="DatosColaborador" class="table table-bordered table-striped responsive"
                            runat="server" AutoGenerateColumns="False" DataKeyNames="IdColaborador">
                            <Columns>
                                <asp:BoundField DataField="IdColaborador" HeaderText="IdColaborador" Visible="False" />
                                <asp:BoundField DataField="NombreColaborador" HeaderText="Nombre" /> 
                                <asp:TemplateField AccessibleHeaderText="Contado" HeaderText="Contado">
                                    <ItemTemplate>
                                        <asp:TextBox ID="TextoContado" runat="server" Text="<%# Bind('VentasContado') %>"
                                            Width="100%"></asp:TextBox>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField AccessibleHeaderText="Cr&eacute;dito" HeaderText="Cr&eacute;dito">
                                    <ItemTemplate>
                                        <asp:TextBox ID="TextoCredito" runat="server" Text="<%# Bind('VentasCredito') %>"
                                            Width="100%"></asp:TextBox>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </div>
                    <div class="form-actions">
                        <button type="submit" class="btn btn-blue" id="Guardar" runat="server" onserverclick="Guardar_Click">
                            Guardar</button>
                        <button type="button" class="btn btn-default" runat="server" id="Cancelar" onserverclick="Cancelar_Click">
                            Cancelar</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
